package com.huixue.zdb.controller;


import com.huixue.zdb.pojo.Expressdelivery;
import com.huixue.zdb.service.IExpressdeliveryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * <p>
 * 代取快递 前端控制器
 * </p>
 *
 * @author ZhouHuRun
 * @since 2020-09-23
 */
@Controller
@RequestMapping("/expressdelivery")
public class ExpressdeliveryController {

    @Autowired
    private IExpressdeliveryService iExpressdeliveryService;

    /**
     * 展示代取快递信息
     * @return
     */
    @GetMapping
    public List<Expressdelivery> listAll(){
        List<Expressdelivery> list = iExpressdeliveryService.list();//直接查询所有信息
        return list;
    }

}

